package com.suyang.syt.service.interfaces;

import java.util.List;

import com.suyang.syt.model.Role;
import com.suyang.syt.model.dto.AjaxObj;
import com.suyang.syt.model.dto.OperationPermission;
import com.suyang.syt.model.dto.PagerEasyUI;
import com.suyang.syt.model.dto.RoleDTO;

public interface RoleService {

	public AjaxObj add(RoleDTO roleDTO) throws Exception;

	public AjaxObj deletes(String roleIds) throws Exception;

	public AjaxObj update(RoleDTO roleDTO) throws Exception;

	public PagerEasyUI<Role> listByEasyUI(int page, int rows, String sort, String order, String name, int roleType) throws Exception;

	public AjaxObj deleteClearUser(String roleIds) throws Exception;

	public Role load(long roleId) throws Exception;

	public List<OperationPermission> operatiaonList(long roleId, long resourcesId) throws Exception;

	public AjaxObj updateResource(long roleId, String resourceIds) throws Exception;

	public AjaxObj updatePermission(long roleId, long resourceId, String permissionIds) throws Exception;

}
